<template>
  <div><h1>params参数 {{$route.params.keyword}}</h1>
  <h1>query参数 {{$route.query.k}}</h1>



  <ul>
     <li v-for="(item,index) in $store.state.sum.data " :key="index">{{item}}</li>    
  </ul>
  </div>
  
</template>

<script>
import axios from 'axios'
export default {
  mounted(){
    this.$store.dispatch("test");
    console.log("state",this.$store.state.sum)
  }

}
</script>

<style>

</style>